package com.hongfeng.web.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hongfeng.web.model.common.BaseEntity;

/**
 * 
 * <汽车小知识>
 *
 * @author llc
 * @date 创建时间：2012-12-7 上午12:07:12
 */
@Entity
@Table(name = "auto_knowledge")
public class AutoKnowledge extends BaseEntity {

	private static final long serialVersionUID = -4910472410983257746L;
	@Id
	@GeneratedValue
	private Long id;
	// 标题
	@Column(name = "title", length = 100, nullable = false)
	private String title;
	// 介绍
	@Column(name = "content", nullable = false)
	private String content;
	// 是否有效
	@Column(name = "is_enable")
	private Short isEnable;
	//  排序值
	@Column(name = "pos")
	private Integer pos;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Short getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(Short isEnable) {
		this.isEnable = isEnable;
	}

	public Integer getPos() {
		return pos;
	}

	public void setPos(Integer pos) {
		this.pos = pos;
	}

}
